#ifndef __TWN_PROPH
#define __TWN_PROPH	1

#ifdef ALONE_TWN_PROPH
#include <stdio.h>
#include <iostream>

#include "ApmsApi.h"
#include "Tianwan.h"
#include "Uti_Tianwan.h"
#include "Mov_Tianwan.h"
#include "Twn_Mov_xy.h"
#include "Twn_Exec_mov.h"
#include "Twn_Path_Fill.h"

#define API_PPH extern "C" __declspec(dllexport)
#else
#define API_PPH extern "C" __declspec(dllimport)
#endif

#define		PPH_ERR_CODE(ErrCode)	ErrCode + 4000

API_PPH	PHASTAT Pro_Ph_Decl( void );
API_PPH	PHASTAT Pro_Ph_Insr( void );
API_PPH	PHASTAT Pro_Ph_Remo( void );
API_PPH	RETCOND Object_Dele ( short *idxnbr );
API_PPH PHASTAT ChangeMast(GENIDX currMast, GENIDX newMast);
API_PPH	int PPH_LogFileWrite(TCHAR cmd[4], TCHAR *Comment, int errNum);
API_PPH	int PPH_ActivateLog(void);
API_PPH	int PPH_DeactivateLog(void);
API_PPH	int PPH_ActivateMsgBox(void);
API_PPH	int PPH_DeactivateMsgBox(void);
API_PPH	int PPH_SetLogPath(TCHAR *path);
API_PPH BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved);
#endif